/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.saleorder.entity;

import com.jeeplus.modules.subgoods.entity.SubGoods;
import com.jeeplus.modules.member.entity.Member;
import java.util.Date;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 卖出订单Entity
 * @author w
 * @version 2021-03-27
 */
public class SaleOrder extends DataEntity<SaleOrder> {
	
	private static final long serialVersionUID = 1L;
	private String orderNo;		// 订单编号
	private SubGoods subGoods;		// 卖出商品
	private Member member;		// 卖出用户
	private Double price;		// 价格
	private Integer num;		// 数量
	private Double charge;		// 手续费
	private Integer nonNum;		// 剩余卖出数量
	private Double totalPrice;		// 总价
	private String isDeal;		// 是否交易完成
	private Date beginCreateDate;		// 开始 create_date
	private Date endCreateDate;		// 结束 create_date
	private String isRevoke;		//是否撤销
	private String exportTime;//导出时间

	
	public SaleOrder() {
		super();
	}

	public SaleOrder(String id){
		super(id);
	}

	@ExcelField(title="订单编号", align=2, sort=1)
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@ExcelField(title="卖出商品", fieldType=SubGoods.class, value="subGoods.goodsName", align=2, sort=2)
	public SubGoods getSubGoods() {
		return subGoods;
	}

	public void setSubGoods(SubGoods subGoods) {
		this.subGoods = subGoods;
	}
	
	@ExcelField(title="卖出用户", fieldType=Member.class, value="member.loginName", align=2, sort=3)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="价格", align=2, sort=4)
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@ExcelField(title="数量", align=2, sort=5)
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}
	
	@ExcelField(title="手续费", align=2, sort=6)
	public Double getCharge() {
		return charge;
	}

	public void setCharge(Double charge) {
		this.charge = charge;
	}
	
	@ExcelField(title="剩余卖出数量", align=2, sort=7)
	public Integer getNonNum() {
		return nonNum;
	}

	public void setNonNum(Integer nonNum) {
		this.nonNum = nonNum;
	}
	
	@ExcelField(title="总价", align=2, sort=8)
	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}
	
	@ExcelField(title="是否交易完成", dictType="yes_no", align=2, sort=9)
	public String getIsDeal() {
		return isDeal;
	}

	public void setIsDeal(String isDeal) {
		this.isDeal = isDeal;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}

	@ExcelField(title="是否撤销", dictType="yes_no", align=2, sort=9)
	public String getIsRevoke() {
		return isRevoke;
	}

	public void setIsRevoke(String isRevoke) {
		this.isRevoke = isRevoke;
	}

	@ExcelField(title="卖出时间", align=2, sort=9)
	public String getExportTime() {
		return exportTime;
	}

	public void setExportTime(String exportTime) {
		this.exportTime = exportTime;
	}
}